/**
 * For the license, see main.cpp file
 */
 
#include "FeedRSS.h"

/* Constructor */
FeedRSS::FeedRSS(QString newTitle, QString newDescription, QString newLink)
{
	feedTitle = new QString(newTitle);
	feedDescription = new QString(newDescription);
	feedLink = new QString(newLink);
	items = new QList< QPair<QString, QString> >();
}

/* Constructor */
FeedRSS::FeedRSS()
{
	feedTitle = new QString();
	feedDescription = new QString();
	feedLink = new QString();
	items = new QList< QPair<QString, QString> >();
}

/* Getter functions */
QString* FeedRSS::getFeedTitle() { return feedTitle; }
QString* FeedRSS::getFeedDescription() { return feedDescription; }
QString* FeedRSS::getFeedLink() { return feedLink; }
QList< QPair<QString, QString> >* FeedRSS::getItems() { return items; }

/* Stetter functions */
void FeedRSS::setFeedTitle(QString newTitle)
{
	delete feedTitle;
	feedTitle = new QString(newTitle);
}

void FeedRSS::setFeedDescription(QString newDescription)
{
	delete feedDescription;
	feedDescription = new QString(newDescription);
}

void FeedRSS::setFeedLink(QString newLink)
{
	delete feedLink;
	feedLink = new QString(newLink);
}


